import Vue from 'vue'
import Router from 'vue-router'

/* 引入account目录下的loginEle组件 */
import loginEle from '../components/account/loginEle'

/* 引入account目录下的registerEle组件 */
import registerEle from '../components/account/registerEle'

/* 引入account目录下的userListEle组件 */
import userListEle from '../components/account/userListEle'

/* 引入account目录下的roleListEle组件 */
import roleListEle from '../components/account/roleListEle'

/* 引入account目录下的roleListEle组件 */
import powerListEle from '../components/account/powerListEle'

/* 引入account目录下的indexEle组件 */
import indexEle from '../components/account/indexEle'

/* 引入account目录下的changePwdEle组件 */
import changePwdEle from '../components/account/changePwdEle'

/* 引入account目录下的userInfoEle 组件 */
import userInfoEle from '../components/account/userInfoEle'

/* 引入attendanceListEle组件 */
import attendanceListEle from '../components/attendanceListEle.vue'

/* 引入salaryListEle组件 */
import salaryListEle from '../components/salaryListEle.vue'
/* 引入personel目录下的employeeList组件 */
import employeeList from '../components/personnel/employeeList'
import recordList from '../components/personnel/recordList.vue'
import contractList from '../components/personnel/contractList.vue'
import transferList from '../components/personnel/transferList.vue'
import hello from '../components/personnel/hello.vue'
import chart from '../components/personnel/chart.vue'
import chart2 from '../components/personnel/chart2.vue'
import chart3 from '../components/personnel/chart3.vue'
import chart4 from '../components/chart4.vue'
import chart5 from '../components/chart5.vue'
import hello2 from '../components/hello2.vue'

/* 引入recruitment目录下的Apply组件 */
import applyList from '../components/recruitment/applyList.vue'
/* 引入recruitment目录下的Add组件 */
import applyAdd from '../components/recruitment/applyAdd.vue'
/* 引入recruitment目录下的Apply01组件 */
import applyList01 from '../components/recruitment/applyList01.vue'
/* 引入recruitment目录下的Apply02组件 */
import applyList02 from '../components/recruitment/applyList02.vue'
/* 引入recruitment目录下的Apply03组件 */
import applyList03 from '../components/recruitment/applyList03.vue'
/* 引入recruitment目录下的Apply04组件 */
import applyList04 from '../components/recruitment/applyList04.vue'
/* 引入recruitment目录下的Apply04组件 */
import applyList05 from '../components/recruitment/applyList05.vue'
/* 引入recruitment目录下的Apply04组件 */
import applyList06 from '../components/recruitment/applyList06.vue'

Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [{
      path: '/',
      path: '/loginEle',
      name: 'loginEle',
      component: loginEle,
    },
    {
      path: '/registerEle',
      name: 'registerEle',
      component: registerEle
    },
    {

      path: '/indexEle',
      meta:{"isLogin":true},
      name: 'indexEle',
      component: indexEle,
      children: [{
          path: '/userListEle',
          meta:{"isLogin":true},
          name: 'userListEle',
          component: userListEle
        },
        {
          path: '/powerListEle',
          meta:{"isLogin":true},
          name: 'powerListEle',
          component: powerListEle
        },
        {
          path: '/roleListEle',
          meta:{"isLogin":true},
          name: 'roleListEle',
          component: roleListEle
        },
        {
          path: '/userInfoEle',
          meta:{"isLogin":true},
          name: 'userInfoEle',
          component: userInfoEle
        },
        {
          path: '/changePwdEle',
          meta:{"isLogin":true},
          name: 'changePwdEle',
          component: changePwdEle
        } ,
		    {
          path:'/attendanceListEle',
          meta:{"isLogin":true},
          name:'attendanceListEle',
          component:  attendanceListEle
        },
        {
          path:'/salaryListEle',
          meta:{"isLogin":true},
          name:'salaryListEle',
          component:  salaryListEle,
        },
          {
            path: '/employeeList',
            meta:{"isLogin":true},
            name: 'employeeList',
            component: employeeList
          },
          {
            path: '/recordList',
            meta:{"isLogin":true},
            name: 'recordList',
            component: recordList
          },
          {
            path: '/contractList',
            meta:{"isLogin":true},
            name: 'contractList',
            component: contractList
          },
          {
            path: '/transferList',
            meta:{"isLogin":true},
            name: 'transferList',
            component: transferList
          },
          {
            path: '/hello',
            meta:{"isLogin":true},
            name: 'hello',
            component: hello
          },
          {
            path: '/hello2',
            meta:{"isLogin":true},
            name: 'hello2',
            component: hello2
          },
          {
            path: '/chart',
            meta:{"isLogin":true},
            name: 'chart',
            component: chart
          },
          {
            path: '/chart2',
            meta:{"isLogin":true},
            name: 'chart2',
            component: chart2
          },
          {
            path: '/chart3',
            meta:{"isLogin":true},
            name: 'chart3',
            component: chart3
          },
          {
            path: '/chart4',
            meta:{"isLogin":true},
            name: 'chart4',
            component: chart4
          },
          {
            path: '/chart5',
            meta:{"isLogin":true},
            name: 'chart5',
            component: chart5
          },
          {
            path: '/applyList', //指的访问组件userList.vue的地址
            meta:{"isLogin":true},
            name: 'applyList', //组件名称描述
            component: applyList //对于的是引入组件的别名
          },
          {
            path: '/applyAdd', //指的访问组件userList.vue的地址
            meta:{"isLogin":true},
            name: 'applyAdd', //组件名称描述
            component: applyAdd //对于的是引入组件的别名
          },
          {
            path: '/applyList01', //指的访问组件userList.vue的地址
            meta:{"isLogin":true},
            name: 'applyList01', //组件名称描述
            component: applyList01 //对于的是引入组件的别名
          },
          {
            path: '/applyList02', //指的访问组件userList.vue的地址
            meta:{"isLogin":true},
            name: 'applyList02', //组件名称描述
            component: applyList02 //对于的是引入组件的别名
          },
          {
            path: '/applyList03', //指的访问组件userList.vue的地址
            meta:{"isLogin":true},
            name: 'applyList03', //组件名称描述
            component: applyList03 //对于的是引入组件的别名
          },
          {
            path: '/applyList04', //指的访问组件userList.vue的地址
            meta:{"isLogin":true},
            name: 'applyList04', //组件名称描述
            component: applyList04 //对于的是引入组件的别名
          },
          {
            path: '/applyList05', //指的访问组件userList.vue的地址
            meta:{"isLogin":true},
            name: 'applyList05', //组件名称描述
            component: applyList05 //对于的是引入组件的别名
          },
          { 
            path: '/applyList06', //指的访问组件userList.vue的地址
            meta:{"isLogin":true},
            name: 'applyList06', //组件名称描述
            component: applyList06 //对于的是引入组件的别名
          }
      ]
    }

  ]
})
